<template>
    this is about
    <span>
        这里访问store.count: {{ count }}
    </span><br>
    <button @click="increment">点我</button>
    <hr>
    <span>今天完成任务数: {{ doneCount }}</span>
</template>
<script>

import { mapActions, mapGetters, mapState } from 'vuex'

export default {
    name: "App",
    components: {},
    data() { },
    methods: {
        ...mapActions(['increment']),
    },
    mounted() {
        console.log(this.$route.params.id)
    },
    computed: {
        ...mapGetters(['doneCount']),
        ...mapState(['count', 'name']),
    }
}
</script>
